import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Hello from '@/components/hi'
import GoodsList from '@/components/GoodsList'
import Vuex from '@/views/vuex2'

Vue.use(Router)

export default new Router({
    mode:"history",
    routes: [{
            path: '/',
            name: 'HelloWorld',
            component: HelloWorld
        },
        {
            path: '/hi',
            name: 'Hello',
            component: Hello
        },
        {
            path: "/goodsList",
            name: "GoodsList",
            component: GoodsList
        },{
            path:'/vuex',
            name:Vuex,
            component:Vuex
        }
    ]
})
